package com.mouse.hxsj.util;

import java.text.DecimalFormat;

public class StringUtil {
    public static boolean isNotBlank(String str) {
        return !isBlank(str);
    }

    public static boolean isBlank(String str) {
        if (str == null || "".equals(str)) {
            return true;
        }
        return false;
    }

    public static Integer toInt(String str) {
        try {
            return Integer.parseInt(str);
        } catch (Exception e) {

        }
        return -1;
    }

    public static String formatInt(Integer value) {
        DecimalFormat df = new DecimalFormat("#,####");
        return df.format(value);
    }

    public static void main(String[] args) {
        String s = formatInt(23000000);
        System.out.println(s);
    }
}
